package com.zhiwang.planet.ui.my.message

import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.zhiwang.planet.R
import com.zhiwang.planet.mvvm.model.entity.main.FeedBack
import com.zhiwang.planet.ui.BaseActivity

class FeedBackDetailActivity : BaseActivity() {


    companion object {

        fun start(context: Context, feedBack: FeedBack) {
            val intent = Intent(context, FeedBackDetailActivity::class.java)
            intent.putExtra("data", feedBack)
            context.startActivity(intent)
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_fragment)

        supportFragmentManager.beginTransaction()
                .add(R.id.container, FeedBackDetailFragment.newInstance(intent.getParcelableExtra("data")))
                .commit()
    }
}